home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / acehtml / acehtmlfreeware.exe / scriptdef / Show Date 3.sd < prev    next >
INI File  |  2006-09-13  |  973b  |  52 lines

  1. [SUBJECT]
  2. Description=Display the current date (3rd variant)
  3. ImageIndex=-1
  4. Folder=Tools
  5.  
  6.  
  7. [HEAD_TEXT]
  8. ;<script language="JavaScript">
  9. ;<!-- begin script
  10. ;var dd3, delay3, TheYear;
  11. ;function debuteDate3() {
  12. ;  var adate, date, amonth;
  13. ;  delay3 = `delay`;
  14. ;
  15. ;  adate = new Date();
  16. ;  date = adate.getDate();
  17. ;  amonth = adate.getMonth()+1;
  18. ;
  19. ;  if (adate.getYear() > 1999)
  20. ;    TheYear = adate.getYear();
  21. ;  else 
  22. ;    TheYear = (1900 + adate.getYear());
  23. ;
  24. ;  if (amonth < 10)
  25. ;    date = TheYear + "/0" + amonth + "/" + date;
  26. ;  else date = TheYear + "/" + amonth + "/" + date;
  27. ;  date = "  " + date;
  28. ;  document.Temps23.date.value = date;
  29. ;
  30. ;  dd3 = setTimeout("debuteDate3(delay3)",delay3);
  31. ;}
  32. ;//  end script -->
  33. ;</script>
  34. ;
  35.  
  36.  
  37. [BODY_TAG]
  38. ;onLoad="debuteDate3()" onUnload="clearTimeout(dd3)"
  39.  
  40.  
  41. [BODY_TEXT]
  42. ;<form name="Temps23">
  43. ;<input type="text" name="date" size="18"><br>
  44. ;</form>
  45. ;
  46.  
  47.  
  48. [`delay`]
  49. Kind=N
  50. Value=10000
  51.  
  52.